﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.Serialization;

namespace 默写
{
    /// <summary>
    /// 加入节点属性的TreeNode
    /// </summary>
    public class TreeNodeExt : TreeNode
    {
        public TreeNodeExt() : base()
        {
            NodeType = 默写.ImageIndex.Root;
        }

        public TreeNodeExt(string text) : base(text)
        {
            NodeType = 默写.ImageIndex.Root;
        }

        public TreeNodeExt(SerializationInfo serializationInfo,StreamingContext context) : base(serializationInfo,context)
        {
            NodeType = 默写.ImageIndex.Root;
        }

        public TreeNodeExt(string text, TreeNode[] children) : base(text,children)
        {
            NodeType = 默写.ImageIndex.Root;
        }

        public TreeNodeExt(string text, int imageIndex, int selectedImageIndex) : base(text,imageIndex,selectedImageIndex)
        {
            NodeType = (ImageIndex)imageIndex;
        }

        public TreeNodeExt(string text,int imageIndex,int selectedImageIndex, TreeNode[] children) : base(text,imageIndex,selectedImageIndex,children)
        {
            NodeType = (ImageIndex)imageIndex;
        }
        /// <summary>
        /// 节点属性
        /// </summary>
        public ImageIndex NodeType
        {
            get;
            set;
        }
    }
}
